warn (someone) off

Translations
dissuader quelqu’un de
Definitions
To advise or instruct someone to stay away from a person, place, or situation, often due to potential danger or negative consequences.